<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<div id="app">
    <!--基本数据类型-->
    <h1>{{ msg }}</h1>
    <p>{{ 123 }}</p>
    <p>{{ 'abc' }}</p>
    <p>{{ true }}</p>
    <p>{{ ['a','b'] }}</p>
    <p>{{ {name:'jack'} }}</p>
    <!--表达式-->
    <p>{{ 1+32 }}</p>
    <p>{{ ['a','b'].join('-') }}</p>
    <!--不能出现语句-->
    <!--<p>{{ if(true){} }}</p>-->
    <!--<p>{{ var num=123 }}</p>-->
</div>
<script src="vue.js"></script>
<script>
    var vm = new Vue({
        el: '#app',
        data: {
            msg: 'hello vue'
        }
    })
</script>
</body>
</html>